
export default [
  {
    path: '/',
    component: () => import('../pages/index'),
    meta: {
      isShowTabBar: true
    }
  },
  // search路由
  // 修改bug
  {
    path: '/search',
    component: () => import('../pages/search')
  },
  //商品详情页面
  {
    path: '/detail',
    component: () => import('../pages/detail')
  },
  // 分类
  {
    path: '/category',
    component: () => import('../pages/category/index'),
    children: [{
      path: 'cateRight/:id',
      component: () => import('../pages/category/cateRight'),
      meta: {
        isShowTabBar: true
      }
    }],
    meta: {
      isShowTabBar: true
    }
  },
  // 商品分类
  {
    path: '/goodsList/:categoryId/:subCategoryId',
    component: () => import('../pages/category/goodsList'),
  },
  //个人中心页面
  {
    path: '/personal',
    component: () => import('../pages/personal'),
    meta: {
      isShowTabBar: true
    }
  },
  //消息界面
  {
    path: '/message',
    component: () => import('../pages/personal/message')
  },
  //登录页面
  {
    path: '/login',
    component: () => import('../pages/login')
  },
  
  //购物车页面
  {
    path: '/cart',
    component: () => import('../pages/cart'),
    meta: {
      isShowTabBar: true
    }
  },
  //提交购物车页面
  {
    path: '/orderCart',
    component: () => import('../pages/cart/orderCart'),
    meta: {
      isShowTabBar: true
    }
  },
  //值得买页面
  {
    path: '/worthShop',
    component: () => import('../pages/worthShop'),
    meta: {
      isShowTabBar: true
    }
  },
  // 支付界面
  {
    path: '/payOrder',
    component: () => import('../pages/cart/payOrder')
  },

  // 多添加搜索
  {
    path: '/manySearch',
    component: () => import('../pages/manySearch')
  },
  //编辑地址页面
  {
    path: '/address',
    component: () => import('../pages/address')
  },
  // {
  //   path: '/test',
  //   component: ()=> import('../pages/test')
  // },
  // 最后兜底路由
  {
    path: '*',
    redirect: '/'
  }

]